package com.eastmountain.util.logging;

import java.awt.Font;
import java.awt.GraphicsEnvironment;
import java.awt.Toolkit;


public class DisplayFonts {

    /*************************************************
     *
     *   main 
     *
     ************************************************/
    public static void main( String[] args ) {

        int i;
        
        //String[] fonts = Toolkit.getDefaultToolkit().getFontList();
        
        System.out.println( "Font families\n");
        
        String[] fontFamily = GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames();
        for ( i=0;i<fontFamily.length;i++) {
           System.out.println(fontFamily[i]);
        }
        
        System.out.println( "\nFonts\n");
        
        Font[] fonts = GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts();
        for ( i=0;i<fonts.length;i++) {
            System.out.println( fonts[i].getFontName());
         }

     }

}
